package com.hongdee.base.imp.entity;


import java.util.ArrayList;
import java.util.List;

/**
 * 类导出对象实体
 */

public class TExpDataVoEntity {

    /**
     * 导出Excel标题
     */
    private List<String> headList;

    /**
     * 导出Excel每一行数据
     */
    private List<List<Object>> bodyList;

    public List<String> getHeadList() {
        return headList;
    }

    public void setHeadList(List<String> headList) {
        if(this.headList==null){
            this.headList=headList;
        }
    }

    public List<List<Object>> getBodyList() {
        return bodyList;
    }

    public void setBodyList(List<Object> rowList) {
        if(this.bodyList==null){
            this.bodyList=new ArrayList<>();
        }
        this.bodyList.add(rowList);
    }

    @Override
    public String toString() {
        return "TExpDataVoEntity{" +
                "headList=" + headList.size() +
                ", bodyList=" + bodyList.size() +
                '}';
    }
}
